import { type App } from 'vue';
import * as components from './index';

// 组件插件定义
const componentPlugin = {
  install(app: App) {
    // 注册所有组件
    for (const [name, component] of Object.entries(components)) {
      app.component(name, component);
    }
  },
};

export default componentPlugin;
